package com.guoby.repository;

import com.guoby.model.User;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by guoby on 2018/3/9.
 */
public interface UserRepository extends JpaRepository<User, Integer> {

    // 根据年龄查询用户
    public List<User> findByAge(Integer age);
}
